package algorithm.array;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.security.SecureRandom;

/**
 * <p>
 * 类注释
 * </p>
 *
 * @author liyi
 * @since 2024/4/17 14:43
 */
public class Test {
    public static void main(String[] args) throws Exception {
        final String fileName = "C:\\Users\\liyi\\javaproject\\algorithm\\resource\\02数组\\age1.txt";
        final SecureRandom random = new SecureRandom();
        BufferedWriter objWriter = null;
        objWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName)));
        for (int i = 0; i < 1400000000; i++) {
            int age = Math.abs(random.nextInt()) % 180;
            objWriter.write(age + "\r\n");
        }
        objWriter.flush();
        objWriter.close();

    }
}
